3.834 \(\int \frac{\sqrt{1+x}}{(1-x)^{5/2} x^2} \, dx\)

Optimal. Leaf size=87 \[ \frac{14 \sqrt{x+1}}{3 \sqrt{1-x}}-\frac{5 \sqrt{x+1}}{3 \sqrt{1-x} x}+\frac{2 \sqrt{x+1}}{3 (1-x)^{3/2} x}-3 \tanh ^{-1}\left (\sqrt{1-x} \sqrt{x+1}\right ) \]

[Out]

(14*Sqrt[1 + x])/(3*Sqrt[1 - x]) + (2*Sqrt[1 + x])/(3*(1 - x)^(3/2)*x) - (5*Sqrt[1 + x])/(3*Sqrt[1 - x]*x) - 3
*ArcTanh[Sqrt[1 - x]*Sqrt[1 + x]]

________________________________________________________________________________________

Rubi [A]  time = 0.0182755, antiderivative size = 87, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {99, 151, 152, 12, 92, 206} \[ \frac{14 \sqrt{x+1}}{3 \sqrt{1-x}}-\frac{5 \sqrt{x+1}}{3 \sqrt{1-x} x}+\frac{2 \sqrt{x+1}}{3 (1-x)^{3/2} x}-3 \tanh ^{-1}\left (\sqrt{1-x} \sqrt{x+1}\right ) \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[1 + x]/((1 - x)^(5/2)*x^2),x]

[Out]

(14*Sqrt[1 + x])/(3*Sqrt[1 - x]) + (2*Sqrt[1 + x])/(3*(1 - x)^(3/2)*x) - (5*Sqrt[1 + x])/(3*Sqrt[1 - x]*x) - 3
*ArcTanh[Sqrt[1 - x]*Sqrt[1 + x]]

Rule 99

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Simp[((a + b
*x)^(m + 1)*(c + d*x)^n*(e + f*x)^(p + 1))/((m + 1)*(b*e - a*f)), x] - Dist[1/((m + 1)*(b*e - a*f)), Int[(a +
b*x)^(m + 1)*(c + d*x)^(n - 1)*(e + f*x)^p*Simp[d*e*n + c*f*(m + p + 2) + d*f*(m + n + p + 2)*x, x], x], x] /;
 FreeQ[{a, b, c, d, e, f, p}, x] && LtQ[m, -1] && GtQ[n, 0] && (IntegersQ[2*m, 2*n, 2*p] || IntegersQ[m, n + p
] || IntegersQ[p, m + n])

Rule 151

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^(p_)*((g_.) + (h_.)*(x_)), x_Symb
ol] :> Simp[((b*g - a*h)*(a + b*x)^(m + 1)*(c + d*x)^(n + 1)*(e + f*x)^(p + 1))/((m + 1)*(b*c - a*d)*(b*e - a*
f)), x] + Dist[1/((m + 1)*(b*c - a*d)*(b*e - a*f)), Int[(a + b*x)^(m + 1)*(c + d*x)^n*(e + f*x)^p*Simp[(a*d*f*
g - b*(d*e + c*f)*g + b*c*e*h)*(m + 1) - (b*g - a*h)*(d*e*(n + 1) + c*f*(p + 1)) - d*f*(b*g - a*h)*(m + n + p
+ 3)*x, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, h, n, p}, x] && LtQ[m, -1] && IntegerQ[m]

Rule 152

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^(p_)*((g_.) + (h_.)*(x_)), x_Symb
ol] :> Simp[((b*g - a*h)*(a + b*x)^(m + 1)*(c + d*x)^(n + 1)*(e + f*x)^(p + 1))/((m + 1)*(b*c - a*d)*(b*e - a*
f)), x] + Dist[1/((m + 1)*(b*c - a*d)*(b*e - a*f)), Int[(a + b*x)^(m + 1)*(c + d*x)^n*(e + f*x)^p*Simp[(a*d*f*
g - b*(d*e + c*f)*g + b*c*e*h)*(m + 1) - (b*g - a*h)*(d*e*(n + 1) + c*f*(p + 1)) - d*f*(b*g - a*h)*(m + n + p
+ 3)*x, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, h, n, p}, x] && LtQ[m, -1] && IntegersQ[2*m, 2*n, 2*p]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 92

Int[1/(Sqrt[(a_.) + (b_.)*(x_)]*Sqrt[(c_.) + (d_.)*(x_)]*((e_.) + (f_.)*(x_))), x_Symbol] :> Dist[b*f, Subst[I
nt[1/(d*(b*e - a*f)^2 + b*f^2*x^2), x], x, Sqrt[a + b*x]*Sqrt[c + d*x]], x] /; FreeQ[{a, b, c, d, e, f}, x] &&
 EqQ[2*b*d*e - f*(b*c + a*d), 0]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{\sqrt{1+x}}{(1-x)^{5/2} x^2} \, dx &=\frac{2 \sqrt{1+x}}{3 (1-x)^{3/2} x}-\frac{2}{3} \int \frac{-\frac{5}{2}-2 x}{(1-x)^{3/2} x^2 \sqrt{1+x}} \, dx\\ &=\frac{2 \sqrt{1+x}}{3 (1-x)^{3/2} x}-\frac{5 \sqrt{1+x}}{3 \sqrt{1-x} x}+\frac{2}{3} \int \frac{\frac{9}{2}+\frac{5 x}{2}}{(1-x)^{3/2} x \sqrt{1+x}} \, dx\\ &=\frac{14 \sqrt{1+x}}{3 \sqrt{1-x}}+\frac{2 \sqrt{1+x}}{3 (1-x)^{3/2} x}-\frac{5 \sqrt{1+x}}{3 \sqrt{1-x} x}-\frac{2}{3} \int -\frac{9}{2 \sqrt{1-x} x \sqrt{1+x}} \, dx\\ &=\frac{14 \sqrt{1+x}}{3 \sqrt{1-x}}+\frac{2 \sqrt{1+x}}{3 (1-x)^{3/2} x}-\frac{5 \sqrt{1+x}}{3 \sqrt{1-x} x}+3 \int \frac{1}{\sqrt{1-x} x \sqrt{1+x}} \, dx\\ &=\frac{14 \sqrt{1+x}}{3 \sqrt{1-x}}+\frac{2 \sqrt{1+x}}{3 (1-x)^{3/2} x}-\frac{5 \sqrt{1+x}}{3 \sqrt{1-x} x}-3 \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sqrt{1-x} \sqrt{1+x}\right )\\ &=\frac{14 \sqrt{1+x}}{3 \sqrt{1-x}}+\frac{2 \sqrt{1+x}}{3 (1-x)^{3/2} x}-\frac{5 \sqrt{1+x}}{3 \sqrt{1-x} x}-3 \tanh ^{-1}\left (\sqrt{1-x} \sqrt{1+x}\right )\\ \end{align*}

Mathematica [A]  time = 0.02435, size = 67, normalized size = 0.77 \[ \frac{14 x^3-5 x^2-9 (x-1) \sqrt{1-x^2} x \tanh ^{-1}\left (\sqrt{1-x^2}\right )-16 x+3}{3 (x-1) x \sqrt{1-x^2}} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Sqrt[1 + x]/((1 - x)^(5/2)*x^2),x]

[Out]

(3 - 16*x - 5*x^2 + 14*x^3 - 9*(-1 + x)*x*Sqrt[1 - x^2]*ArcTanh[Sqrt[1 - x^2]])/(3*(-1 + x)*x*Sqrt[1 - x^2])

________________________________________________________________________________________

Maple [A]  time = 0.01, size = 113, normalized size = 1.3 \begin{align*} -{\frac{1}{3\,x \left ( -1+x \right ) ^{2}} \left ( 9\,{\it Artanh} \left ({\frac{1}{\sqrt{-{x}^{2}+1}}} \right ){x}^{3}-18\,{\it Artanh} \left ({\frac{1}{\sqrt{-{x}^{2}+1}}} \right ){x}^{2}+14\,{x}^{2}\sqrt{-{x}^{2}+1}+9\,{\it Artanh} \left ({\frac{1}{\sqrt{-{x}^{2}+1}}} \right ) x-19\,x\sqrt{-{x}^{2}+1}+3\,\sqrt{-{x}^{2}+1} \right ) \sqrt{1-x}\sqrt{1+x}{\frac{1}{\sqrt{-{x}^{2}+1}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1+x)^(1/2)/(1-x)^(5/2)/x^2,x)

[Out]

-1/3*(9*arctanh(1/(-x^2+1)^(1/2))*x^3-18*arctanh(1/(-x^2+1)^(1/2))*x^2+14*x^2*(-x^2+1)^(1/2)+9*arctanh(1/(-x^2
+1)^(1/2))*x-19*x*(-x^2+1)^(1/2)+3*(-x^2+1)^(1/2))*(1-x)^(1/2)*(1+x)^(1/2)/x/(-1+x)^2/(-x^2+1)^(1/2)

________________________________________________________________________________________

Maxima [A]  time = 1.04439, size = 116, normalized size = 1.33 \begin{align*} \frac{14 \, x}{3 \, \sqrt{-x^{2} + 1}} + \frac{3}{\sqrt{-x^{2} + 1}} + \frac{7 \, x}{3 \,{\left (-x^{2} + 1\right )}^{\frac{3}{2}}} + \frac{4}{3 \,{\left (-x^{2} + 1\right )}^{\frac{3}{2}}} - \frac{1}{{\left (-x^{2} + 1\right )}^{\frac{3}{2}} x} - 3 \, \log \left (\frac{2 \, \sqrt{-x^{2} + 1}}{{\left | x \right |}} + \frac{2}{{\left | x \right |}}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)^(1/2)/(1-x)^(5/2)/x^2,x, algorithm="maxima")

[Out]

14/3*x/sqrt(-x^2 + 1) + 3/sqrt(-x^2 + 1) + 7/3*x/(-x^2 + 1)^(3/2) + 4/3/(-x^2 + 1)^(3/2) - 1/((-x^2 + 1)^(3/2)
*x) - 3*log(2*sqrt(-x^2 + 1)/abs(x) + 2/abs(x))

________________________________________________________________________________________

Fricas [A]  time = 1.56637, size = 209, normalized size = 2.4 \begin{align*} \frac{13 \, x^{3} - 26 \, x^{2} -{\left (14 \, x^{2} - 19 \, x + 3\right )} \sqrt{x + 1} \sqrt{-x + 1} + 9 \,{\left (x^{3} - 2 \, x^{2} + x\right )} \log \left (\frac{\sqrt{x + 1} \sqrt{-x + 1} - 1}{x}\right ) + 13 \, x}{3 \,{\left (x^{3} - 2 \, x^{2} + x\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)^(1/2)/(1-x)^(5/2)/x^2,x, algorithm="fricas")

[Out]

1/3*(13*x^3 - 26*x^2 - (14*x^2 - 19*x + 3)*sqrt(x + 1)*sqrt(-x + 1) + 9*(x^3 - 2*x^2 + x)*log((sqrt(x + 1)*sqr
t(-x + 1) - 1)/x) + 13*x)/(x^3 - 2*x^2 + x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x + 1}}{x^{2} \left (1 - x\right )^{\frac{5}{2}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)**(1/2)/(1-x)**(5/2)/x**2,x)

[Out]

Integral(sqrt(x + 1)/(x**2*(1 - x)**(5/2)), x)

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)^(1/2)/(1-x)^(5/2)/x^2,x, algorithm="giac")

[Out]

Exception raised: NotImplementedError